﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MsProjectRobot")]
    public partial class MsProjectRobot
    {
        [Key]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ProjectRobotId { get; set; }

        /// <summary>
        /// 项目Id
        /// </summary>
        [Required]
        [Column(TypeName = "uuid")]
        public Guid ProjectId { get; set; }

        /// <summary>
        ///  设备Id
        /// </summary>
        [Required]
        [Column(TypeName = "varchar(64)")]
        public string RobotId { get; set; }

        [ForeignKey("ProjectId")]
        public virtual MsProject MsProject { get; set; }

        [ForeignKey("RobotId")]
        public virtual MsRobot MsRobot { get; set; }
    }
}